<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/upload.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/resource/js/admin/watermark.js"></script>
</head>
<body>
    <div class="position"><span>您的当前位置：</span>系统设置 > 图片水印管理</div>
	<form method="post" action="update">
    	<div class="rightbody m">
    		<div class="rightbodycontent">
	    		<table cellspacing="1" cellpadding="4" class="tableedit">
	    			<tr>
						<td>启用：</td>
						<td>
							<input type="checkbox" name="endble"<#if watermark.endble> checked</#if> />
						</td>
					</tr>
					<tr>
						<td>水印图片：</td>
						<td>
						    <input type="hidden" name="image" id="image" />
							<img id="image_pre" src="/resource/image/watermark.png" height="60" />
						    <a class="linkbtn upload">本地上传</a>
							<input type="file" id="imagefile" name="srcfile" class="uploadfile" onchange="upload()" accept="image/*" />
		                    <span id="uploading" class="uploaditem" style="display:none;">正在上传中...</span>
						</td>
					</tr>
	    			<tr>
						<td>位置：</td>
						<td>
							<label><input type="radio" name="position" value="1" />左上</label>
							<label><input type="radio" name="position" value="2"/>中上</label>
							<label><input type="radio" name="position" value="3" />右上</label>
							<label><input type="radio" name="position" value="4" />左中</label>
							<label><input type="radio" name="position" value="5" />中中</label>
							<label><input type="radio" name="position" value="6" />右中</label>
							<label><input type="radio" name="position" value="7" />左下</label>
							<label><input type="radio" name="position" value="8" />中下</label>
							<label><input type="radio" name="position" value="9" checked />右下</label>
						</td>
					</tr>
	    			<tr>
						<td>X轴边距：</td>
						<td>
							<input type="text" name="margin_x" id="marginX" value="${watermark.marginX}" />
						</td>
					</tr>
	    			<tr>
						<td>Y轴边距：</td>
						<td>
							<input type="text" name="margin_y" id="marginY" value="${watermark.marginY}" />
						</td>
					</tr>
	    			<tr>
						<td>透明度：</td>
						<td>
							<input type="text" name="transparence" value="${watermark.transparence}" />
						</td>
					</tr>
				</table>
			</div>
		</div>
        <div class="rightfoot">
        	<div class="rightfootcontentnr">
				<input type="submit" value="保 存" class="save" />
			</div>
	    </div>
	</form>
</body>
</html>